<!--
  @author mujunlin
  @since 2019/08/22 01:08
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:replace="common/common :: jscss"/>
</head>
<body>

<div class="layui-fluid">
    <blockquote class="layui-crumb">
        基础数据管理>
        <a lay-href="/product/citypriceratio/list.action">城市价格系数</a> >
        <zmn>快速设置</zmn>
    </blockquote>
    <div class="layui-card">
        <div class="layui-card-body">
            <form method="POST" class="layui-form">
                <label style="font-weight: bold;">第一步：选择城市</label>
                <div class="inline-block" style="float: left">
                    <div class="zmn-2layer-list" th:each="m : ${provinces}">
                        <div class="list-left" th:if="${not #lists.isEmpty(cityMap[m.areaId])}"
                             style="text-align: center">
                            <div class="list-item" th:text="${m.name + '：'}"></div>
                        </div>
                        <div class="list-right" th:if="${not #lists.isEmpty(cityMap[m.areaId])}">
                            <div class="right-box">
                                <div class="list-item">
                                    <input type="checkbox" class="checkAll" lay-filter="checkAll" th:value="${m.areaId}"
                                           title="全选">
                                </div>
                                <div class="list-item" th:each="city : ${cityMap[m.areaId]}" th:title="${city.name}">
                                    <input type="checkbox" lay-filter="checkOne" name="areaId" th:class="${m.areaId}"
                                           th:value="|${city.parentId}-${city.areaId}|"
                                           th:title="${city.name}"
                                           th:attr="citymsg=${m.areaId+','+m.name+','+m.code+','+city.areaId+','+city.name+','+city.code+','+city.longitude+','+city.latitude}">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item layui-layout-admin">
                    <div class="layui-input-block">
                        <div class="layui-footer" style="left: 0;height: auto;">
                            <div class="layui-fluid" style="padding-top: 0;">
                                <div class="layui-card">
                                    <div class="layui-card-body" style="text-align: left;padding-top: 0;">
                                        <label style="font-weight: bold;">第二步：系数设置</label>
                                        <div class="layui-split">&nbsp;</div>
                                        <label>销售价：</label>
                                        <button th:if="${#authPermit.checkPermit('/product/citypriceratio/batch/cityRatio.action?priceType=1')}"
                                                class="layui-btn layui-btn-sm" lay-submit=""
                                                lay-filter="set-ratio-batch">默认系数
                                        </button>
                                        <button th:if="${#authPermit.checkPermit('/product/citypriceratio/batch/categoutratio.action?priceType=1')}"
                                                class="layui-btn layui-btn-sm" lay-submit=""
                                                lay-filter="categ-out-ratio-batch">C分类系数
                                        </button>
                                        <button th:if="${#authPermit.checkPermit('/product/citypriceratio/batch/categprojectratio.action?priceType=1')}"
                                                class="layui-btn layui-btn-sm" lay-submit=""
                                                lay-filter="categ-project-ratio-batch">B默认系数
                                        </button>
                                        <button th:if="${#authPermit.checkPermit('/product/citypriceratio/batch/categinratio.action?priceType=1')}"
                                                class="layui-btn layui-btn-sm" lay-submit=""
                                                lay-filter="categ-in-ratio-batch">F分类系数
                                        </button>

                                        <div class="layui-split">&nbsp;</div>

                                        <label>内部价：</label>
                                        <button th:if="${#authPermit.checkPermit('/product/citypriceratio/batch/cityRatio.action?priceType=2')}"
                                                class="layui-btn layui-btn-sm innerPrice" lay-submit=""
                                                lay-filter="set-ratio-batch">默认系数
                                        </button>
                                        <button th:if="${#authPermit.checkPermit('/product/citypriceratio/batch/categoutratio.action?priceType=2')}"
                                                class="layui-btn layui-btn-sm innerPrice" lay-submit=""
                                                lay-filter="categ-out-ratio-batch">C分类系数
                                        </button>
                                        <button th:if="${#authPermit.checkPermit('/product/citypriceratio/batch/categprojectratio.action?priceType=2')}"
                                                class="layui-btn layui-btn-sm innerPrice" lay-submit=""
                                                lay-filter="categ-project-ratio-batch">B默认系数
                                        </button>
                                        <button th:if="${#authPermit.checkPermit('/product/citypriceratio/batch/categinratio.action?priceType=2')}"
                                                class="layui-btn layui-btn-sm innerPrice" lay-submit=""
                                                lay-filter="categ-in-ratio-batch">F分类系数
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>
<script type="text/javascript" th:inline="javascript">
    layui.config({
        base: "/static/lay/",
        version: 20191219230330
    }).extend({
        index: "lib/index",
        price_ratio_city_batch: "product/citypriceratio/batch/zmn.plat.citypriceratio.city.batch"
    }).use(['index', 'price_ratio_city_batch']);

</script>